package org.blueoxygen.kukuruyuk.entity;

import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.blueoxygen.cimande.DefaultPersistence;
import org.blueoxygen.cimande.security.User;
import org.blueoxygen.kukuruyuk.entity.PurchaseOrder;
import org.blueoxygen.kukuruyuk.entity.Item;
import org.blueoxygen.cimande.DefaultPersistence;

@Entity
@Table(name="kur_masterreceipedetail")
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
public class MasterReceipeDetail extends DefaultPersistence{

	private PurchaseOrder poId;
	private String realizeDate;
	private int quantity;
	private Item item;
	
	
	
	public int getQuantity() {
		return quantity;
	}
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	
	
	public String getRealizeDate() {
		return realizeDate;
	}
	public void setRealizeDate(String realizeDate) {
		this.realizeDate = realizeDate;
	}
	@ManyToOne
	@JoinColumn(name="item")
	public Item getItem() {
		return item;
	}
	public void setItem(Item item) {
		this.item = item;
	}
	
	@ManyToOne
	@JoinColumn(name="PoId")
	public PurchaseOrder getPoId() {
		return poId;
	}
	public void setPoId(PurchaseOrder poId) {
		this.poId = poId;
	}
	
}
